
package com.blackline.UI.USERS;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
/**
 * @author XBO
 * @version Feb, 2013
 * <p>This page is after clicking USERS->Add New User link.<br>
 * Please refer to UI.User_Details.png in doc-files. <br>
 */
public class User_Details {
	
	/**
	 * Login ID of new user
	 */
	@FindBy (id = "tbLoginID")
	public WebElement Login_ID;
	
	
	/**
	 * First Name
	 */
	@FindBy (id = "tbFirstName")
	public WebElement First_Name;
	
	
	/**
	 * Last Name
	 */
	@FindBy (id = "tbLastName")
	public WebElement Last_Name;
	
	
	/**
	 * Email Address
	 */
	@FindBy (id = "tbEmailAddress")
	public WebElement Email_Address;
	
	
	/**
	 * Save button in User Details page
	 */
	//@FindBy (className = "webcontrols_toolbar_icon_save core_clearfix")
	@FindBy (xpath = "//div[@class = 'webcontrols_toolbar_icon_save core_clearfix']")
	public WebElement Save_button;
	
	
	/**
	 * Back button in User Details page
	 */
	@FindBy (xpath = "//div[@class = 'webcontrols_toolbar_icon_back core_clearfix']")
	public WebElement Back_button;
	
	/**
	 * Reset User's Password
	 */
	@FindBy (id = "tbibResetPassword")
	public WebElement Reset_Users_Pwd;
	
	
	/**
	 * Entities section in User Details
	 */
	//@FindBy (xpath = "//div[@class = 'fieldSetToggleButton userControls_FieldsetToggle_ExpandImage']")
	//@FindBy (xpath = "//fieldset[@id = 'ftEntity']")
	//@FindBy (id = "ftEntity")
	@FindBy (xpath = "//fieldset[@id = 'ftEntity']/legend/div[@class]")
	public WebElement Entities_bar;
	
	
	/**
	 * Entity list
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ftPage_ftEntity_tbrEntityTools_rptToolBarItems_ctl03_cbEntity_Input")
	public WebElement Entity_List;
	
	
	/**
	 * Add Entity button
	 */
	//@FindBy (xpath = "//div[@class = 'webcontrols_toolbar_icon_add core_clearfix']")
	@FindBy (id = "tbibEntityAdd")
	//@FindBy (xpath = "//li[@class = 'webControls_ToolBar_New webControls_ToolBarButton_Left_New  ']/div/div[1]")
	public WebElement Add_Entity_button;
	
	
	/**
	 * OK button in Confirm dialog
	 */
	@FindBy (id = "aOk")
	public WebElement OK_Confirm;
	
	
	/**
	 * Authorized Roles list
	 */
//	@FindBy (className = "fieldSetToggleButton userControls_FieldsetToggle_ExpandImage")
//	@FindBy (xpath = "//div[@class = 'fieldSetToggleButton userControls_FieldsetToggle_ExpandImage']")
	@FindBy (xpath = "//fieldset[@id = 'ftRole']/legend/div[@class]")
	public WebElement Authorized_Roles;
	
	
	/**
	 * System Admin checkbox
	 */
	@FindBy (id = "14_cbRow")
	public WebElement Sys_Admin_Checkbox;
	
	

}